function Refiner(EnergyHelp,VimHelp,MinZhi,MaxZhi,HelpUp,giveRefinerEXP,RefinerName){
	if(Number(plus.storage.getItem("MyEnergy"))>=EnergyHelp&&Number(plus.storage.getItem("MyVim"))>=VimHelp){//是否达到需求
	plus.storage.removeItem("RefinerDataNow");
	var refinerWeb = plus.webview.create("view/refinerData.html");
	refinerWeb.show();
	
	
	refinerWeb.addEventListener('hide',function(){
		
		plus.storage.setItem("MyForge",String((giveRefinerEXP+Number(plus.storage.getItem("MyForgeExp")))*Number(plus.storage.getItem("SoulLearn"))));//增加锻造经验
		
		if(Number(plus.storage.getItem("MyForgeExp"))>=Math.floor((1+Number(plus.storage.getItem("MyForgeLevel")))*Math.sqrt(1+Number(plus.storage.getItem("MyForgeLevel")))*10)){//锻造是否可以升级
			
			plus.storage.setItem("MyForgeEXP",//减少经验
			String(Number(plus.storage.getItem("MyForgeExp"))-Math.floor((1+Number(plus.storage.getItem("MyForgeLevel")))*Math.sqrt(1+Number(plus.storage.getItem("MyForgeLevel")))*10)));
			
			plus.storage.setItem("MyForgeLevel",String(Number(plus.storage.getItem("MyForgeLevel"))+1));
			mui.toast('锻造等级提升了');
		}
		
		//更改数值
		document.getElementById("MyForgeLevel").innerHTML = plus.storage.getItem("MyForgeLevel");
		document.getElementById("MyForgeExp").innerHTML = plus.storage.getItem("MyForgeExp");
		
		//减去需求
		plus.storage.setItem("MyEnergy",String(Number(plus.storage.getItem("MyEnergy"))-EnergyHelp));
		plus.storage.setItem("MyVim",String(Number(plus.storage.getItem("MyVim"))-VimHelp));

		
		var Zhi = Math.floor(Math.random()*(MaxZhi-MinZhi+1))+MinZhi;//随机值
		Zhi *= Math.sqrt(1+Number(plus.storage.getItem("MyForgeLevel")));//根据锻造等级增加数据
		Zhi *= Math.floor(1+Number(plus.storage.getItem("RefinerDataNow")));

		switch (HelpUp){//Help0为灵力,1为攻击,2为防御
			case 0:
  				if(Zhi>Number(plus.storage.getItem("MyForgeExpUp"))){
					plus.storage.setItem("MyForgeExpUp",String(Zhi));
					alert("成功锻造历史最高记录:"+String(Zhi));
					return true;
				}
				alert("当前锻造物品数值:"+String(Zhi));
				return false;
			case 1:
				if(Zhi>Number(plus.storage.getItem("MyForgeAttackUp"))){
					plus.storage.setItem("MyForgeAttackUp",String(Zhi));
					alert("成功锻造历史最高记录:"+String(Zhi));
					return true;
				}
				alert("当前锻造物品数值:"+String(Zhi));
				return false;
			case 2:
				if(Zhi>Number(plus.storage.getItem("MyForgeDefineUp"))){
					plus.storage.setItem("MyForgeDefineUp",String(Zhi));
					alert("成功锻造历史最高记录:"+String(Zhi));
					return true;
				}
				alert("当前锻造物品数值:"+String(Zhi));
				return false;
			default:
				break;
		}
	},false);
	return true;
	}
	alert("灵力或者精力不足");
	return false;
}